import { createRouter, createWebHashHistory, RouterOptions } from 'vue-router'
import { setupLayouts } from 'virtual:generated-layouts'
import generatedRoutes from 'virtual:generated-pages'

const routes = setupLayouts(generatedRoutes)

const router = createRouter(<RouterOptions>{
  history: createWebHashHistory(),
  routes: routes
})

export default router

export { generatedRoutes }
